﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyKhachSan
{
    public partial class QuanLyKhachSan : Form
    {
        public QuanLyKhachSan()
        {
            InitializeComponent();
        }

        private void thoatMenu_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Chắc chắn muốn thoát ???", "Warning !!!", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
                Application.Exit();
        }

        private void menuThongTinKS_Click(object sender, EventArgs e)
        {
            new ThongTinKhachSan().ShowDialog();
        }

        private void menuThayDoiQD_Click(object sender, EventArgs e)
        {
            new ThayDoiQuyDinh().ShowDialog();
        }

        private void menuXemDSPhong_Click(object sender, EventArgs e)
        {
            new DanhSachPhong().ShowDialog();
        }

        private void menuTraCuuPhong_Click(object sender, EventArgs e)
        {
            new TraCuuPhong().ShowDialog();
        }

        private void menuThemLoaiPhong_Click(object sender, EventArgs e)
        {
            new ThemLoaiPhong().ShowDialog();
        }

        private void menuThemPhong_Click(object sender, EventArgs e)
        {
            new ThemPhong().ShowDialog();
        }

        private void menuTraCuuKH_Click(object sender, EventArgs e)
        {
            new TraCuuKhachHang().ShowDialog();
        }

        private void menuThemLoaiKH_Click(object sender, EventArgs e)
        {
            new ThemLoaiKhach().ShowDialog();
        }

        private void menuChoThue_Click(object sender, EventArgs e)
        {
            new ChoThuePhong().ShowDialog();
        }

        private void menuTra_Click(object sender, EventArgs e)
        {
            new TraPhong().ShowDialog();
        }

        private void menuLapBCDT_Click(object sender, EventArgs e)
        {
            new BaoCaoDoanhThu().ShowDialog();
        }

        private void menuBCMDSD_Click(object sender, EventArgs e)
        {
            new BaoCaoMatDo().ShowDialog();
        }

        private void menuHelp_Click(object sender, EventArgs e)
        {
            Help.ShowHelp(this, Application.StartupPath + "/Help.chm");
        }

        private void menuInfo_Click(object sender, EventArgs e)
        {
            new About().ShowDialog();
        }

        private void QuanLyKhachSan_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.F1)
            {
                Help.ShowHelp(this, Application.StartupPath + "/Help.chm");
            }
        }
    }
}
